<?php

namespace App\Http\Requests\QH;

use Illuminate\Foundation\Http\FormRequest;

class SchoolSpecStoreRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'name' => 'bail|required|string',
            'parentId' => 'bail|required|integer',
            'level' => 'bail|required|integer|in:1,2,3',
            'class' => 'bail|required|string',
            'province' => 'bail|nullable|array',
            'code' => 'bail|nullable|string',
            'xz' => 'bail|required|string',
            'pymb' => 'bail|nullable|string',
            'zykc' => 'bail|nullable|string',
            'jyfx' => 'bail|nullable|string',
            'zynl' => 'bail|nullable|string',
            'sxjx' => 'bail|nullable|string',
        ];
    }
}
